package com.collabscm.waf.solution.logging.slf4j;

import com.collabscm.waf.solution.logging.Logger;
import com.collabscm.waf.solution.logging.LoggerFactory;
import com.collabscm.waf.solution.logging.LoggerProvider;

/**
 * Slf4j的Logger提供者
 * 
 * @author Zeng Raoxing
 */
public class Slf4jProvider extends LoggerFactory.Configueration 
                           implements LoggerProvider {
	private String configFile;
	
	public Slf4jProvider() {
		super.setLoggerProvider(this);
	}

	@Override
	public Logger getLogger(String name) {
		org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(name);
		Slf4jLogger backLogger = new Slf4jLogger(logger);
		return backLogger;
	}
	
	public void setConfigFile(String configFile) {
		this.configFile = configFile;
	}

}
